#define _CRT_SECURE_NO_WARNINGS 1

#include "dl.h"

void test()
{
	DLNode* phead = DLInit();
	//DLPrint(phead);
	//DLPushBack(phead, 1);
	//DLPrint(phead);
	//DLPushBack(phead, 2);
	//DLPrint(phead);	
	//DLPushBack(phead, 3);
	//DLPrint(phead);
	//DLPushBack(phead, 4);
	//DLPrint(phead);
	//DLPushBack(phead, 5);
	//DLPrint(phead);
	DLPushFront(phead, 1);
	DLFrontPrint(phead);
	DLBackPrint(phead);
	//DLPushFront(phead, 2);
	//DLFrontPrint(phead);
	//DLBackPrint(phead);
	//DLPushFront(phead, 3);
	//DLFrontPrint(phead);
	//DLBackPrint(phead);
	//DLPushFront(phead, 4);
	//DLFrontPrint(phead);
	//DLBackPrint(phead);
	//DLPushFront(phead, 5);
	//DLFrontPrint(phead);
	//DLBackPrint(phead);

	DLNode* find = DLFind(phead, 1);
	DLErase(phead, find);
	DLFrontPrint(phead);
	DLBackPrint(phead);

	DLDestroy(phead);
	phead = NULL;
	find = NULL;
}

int main()
{
	test();
	return 0;
}